import request from '@/router/axios'
import moment from 'moment';
export function getXw_tvm_shouJieSuan_areadySubmit(query) {
  return request({
    url: '/check/xw_js_tvm/getXw_tvm_shouJieSuan_areadySubmit',
    method: 'post',
    params: query
  })
}


export function areadySubmitMainOptionList(){
  return {
    emptyBtn:false,
    editBtn:false,
    delBtn:false,
    addBtn:false,
    refreshBtn:false,
    columnBtn:false,
    border: true,
    index:true,
    indexLabel:'序号',
    page:false,
    align:'center',
    menuWidth:150,
    menuAlign:'center',
    selection: true,
    reserveSelection:false,
    height: 450,
    column:[
      {prop:"tvmCode", label:"TVM编号",search:true},
      {prop:"settleStartTime", label:"结算开始日期",type:'date',format:'yyyy-MM-dd',width:120 },
      {prop:"settleEndTime", label:"结算结束日期",type:'date',format:'yyyy-MM-dd',width:120,
      formatter:function (row,v) {
        return moment(v).subtract(2,"hours").format("YYYY-MM-DD");
      }},
      {prop:"recordTime", label:"收入日期",type:'date',search:true,format:'yyyy-MM-dd',valueFormat:'yyyy-MM-dd',width:90},
      {prop:"settleTime", label:"提交日期",type:'date',format:'yyyy-MM-dd',valueFormat:'yyyy-MM-dd',width:90},
      {prop:"cashReceiptAmount",hide:true, label:"现金实收金额",formatter:function (row,v) {
          if(v){
            return Number(v).toFixed(2);
          }
          return v;
        }},
        {prop:"checkAmount", label:"清点金额",formatter:function (row,v) {
          if(v){
            return Number(v).toFixed(2);
          }
          return v;
        }},
      {prop:"billCashCashIncomeAmount",hide:true, label:"结账单据现金收入金额",formatter:function (row,v) {
          if(v){
            return Number(v).toFixed(2);
          }
          return v;
        }},
      {prop:"billCashCashReceiptAmount",hide:true, label:"结账单据现金接收总计",formatter:function (row,v) {
          if(v){
            return Number(v).toFixed(2);
          }
          return v;
        }},
      {prop:"billCashCashChangeAmount",hide:true, label:"结账单据现金找零总计",formatter:function (row,v) {
          if(v){
            return Number(v).toFixed(2);
          }
          return v;
        }},
      {prop:"itvmPaymentAmount",hide:true, label:"结账单据电子收入金额",formatter:function (row,v) {
          if(v){
            return Number(v).toFixed(2);
          }
          return v;
        }},
      {prop:"passengerAttendantName", label:"录入人",search:true,width:90},
      {prop:"passengerAttendantJobNo", label:"录入人员工号",width:110},
      {prop:"attendancePersonName", label:"复核人"},
      {prop:"attendancePersonJobNo", label:"复核人员工号",width:95},
      {
        label: '是否补提交',
        prop: 'additionalRecordingStatus',
        type: 'select',
        search:true,
		searchLabelWidth: 100,
        dicData: [{
          label: '否',
          value: '0'
        }, {
          label: '是',
          value: '1'
        }],
        width: 90
      }
    ]
  }
}
